package cfg

import (
	"fmt"
	"github.com/joho/godotenv"
)

// StartEnvFile load .env file if not exist skip it
func StartEnvFile() {
	err := godotenv.Load()
	if err != nil {
		fmt.Println(fmt.Sprintf("\033[0;33m[ORANGE] %v \033[0m", "can not found .env file, skip load env variable"))
		return
	}
	fmt.Println(fmt.Sprintf("\033[0;33m[ORANGE] %v \033[0m", "success load the .env file."))
}
